// let data = uni.getStorageSync('formOperatesData');
// console.log(data)
let formOperates = {
	read(id,data){
		if(data != null && data.length > 0){
			for(let i = 0;i<data.length;i++){
				if(data[i].id == id)return data[i].read
			}
		}else{
			return true;
		}
	},
	
	write(id,data){
		if(data != null && data.length > 0){
			for(let i = 0;i<data.length;i++){
				if(data[i].id == id)return !data[i].write
			}
		}else{
			return false;
		}
	}
}
export default formOperates